package cn.tedu.review;
/**本类用于复习面向对象入门案例*/
public class TestPhone {
    public static void main(String[] args) {
        Phone p = new Phone();
        p.brand = "小米";
        p.price = 3600;
        System.out.println(p.brand);
        System.out.println(p.price);
        Phone p2 = new Phone();
        System.out.println(p2.brand);//null
        System.out.println(p2.price);//0.0
        p.message();
        p.video();


    }
}
class Phone{
    String brand;
    double price;
    public void message(){
        System.out.println("发短信");
    }
    public void video(){
        System.out.println("看直播");
    }
}
